﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
using System.Linq;
using System.Text;

namespace TorchlightModOverseer
{
	public class TransparentHeader : TransparentTextDisplayBase
	{
		protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
		{
			using (var brush = new SolidBrush(ShadowColor))
			{
				var graphics = e.Graphics;
				graphics.CompositingQuality = CompositingQuality.HighQuality;
				graphics.TextRenderingHint = TextRenderingHint.AntiAliasGridFit;
				graphics.DrawString(Message, Font,
					brush, new PointF(1, 1));

				base.OnPaint(e);
			}
		}

		Color shadowColor;

		[Category("Appearance")]
		public Color ShadowColor
		{
			get
			{
				return shadowColor;
			}
			set
			{
				shadowColor = value;
				this.Invalidate();
			}
		}
	}
}
